package com.ims.business.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ims.common.annotation.DictTag;
import com.ims.common.matatype.impl.BaseModel;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈骑元
 * @since 2019-07-07
 */
@TableName("t_opinion")
public class Opinion extends BaseModel<Opinion> {

    private static final long serialVersionUID = 1L;

    /**
     * 意见编号
     */
    @TableId("opinion_id")
    private String opinionId;
    /**
     * 登陆用户编号
     */
    private String openid;
    /**
     * 意见内容
     */
    @TableField("opinion_content")
    private String opinionContent;
    public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 是否处理0是1否
     */
    @DictTag(type="whether_type")
    @TableField("whether_deal")
    private String whetherDeal;
    /**
     * 处理时间
     */
    @TableField("deal_time")
    private Date dealTime;
    /**
     * 处理人
     */
    @TableField("deal_by")
    private String dealBy;
    /**
     * 备注
     */
    
    private String remark;
    /**
     * 反馈人
     */
    @TableField(exist = false)
    private String username;
    /**
     * 反馈电话
     */
    @TableField(exist = false)
    private String mobile;

    public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getOpinionId() {
        return opinionId;
    }

    public void setOpinionId(String opinionId) {
        this.opinionId = opinionId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getOpinionContent() {
        return opinionContent;
    }

    public void setOpinionContent(String opinionContent) {
        this.opinionContent = opinionContent;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getWhetherDeal() {
        return whetherDeal;
    }

    public void setWhetherDeal(String whetherDeal) {
        this.whetherDeal = whetherDeal;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public String getDealBy() {
        return dealBy;
    }

    public void setDealBy(String dealBy) {
        this.dealBy = dealBy;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.opinionId;
    }

    @Override
    public String toString() {
        return "Opinion{" +
        "opinionId=" + opinionId +
        ", openid=" + openid +
        ", opinionContent=" + opinionContent +
        ", createTime=" + createTime +
        ", whetherDeal=" + whetherDeal +
        ", dealTime=" + dealTime +
        ", dealBy=" + dealBy +
        ", remark=" + remark +
        "}";
    }
}
